package com.yufuchang;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.management.MXBean;

/**
 * Created by yufuchang on 2020/9/4.
 */
@Configuration
public class MyConfigration {

    @Bean
    public String getString(){
        return "yufuchang";
    }

    @Bean(value = "myTestBean",initMethod="init", destroyMethod="destroy")
    public MyTestBean getMyTestBean(){
        return new MyTestBean();
    }
}
